//
//  LHQDestinationCollectionReusableView.m
//  God_is_a_Girl
//
//  Created by dllo on 15/9/24.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LHQDestinationCollectionReusableView.h"

@implementation LHQDestinationCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.title = [[UILabel alloc] init];
        [self addSubview:self.title];
       
        
        
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes

{
    self.title.frame = CGRectMake(10, 10, self.frame.size.width, 15);
    self.title.font = [UIFont  systemFontOfSize:15];
   
    
    self.button  = [UIButton  buttonWithType:UIButtonTypeCustom];
    self.button.frame = CGRectMake(self.frame.size.width-50, 10, 60, 15);
    [self.button  setImage:[UIImage  imageNamed:@"iconfont-gengduo.png"] forState:UIControlStateNormal];
    
    [self addSubview:self.button];
    
}

-(void)setModel:(DestinationModel *)model
{
    
    self.title.text = [NSString  stringWithFormat:@"💧%@",model.title];
    
}





@end
